import httprequest from '@/utils/index'
//登录接口
export const login=(data)=>{
   return httprequest.post({
    url:'/login?grant_type=admin',
    data
   })
}

export const user=(data)=>{
   return httprequest.get({
      url:'/sys/user/info',
      data
   })
}
//自提点
export const ziti=(data)=>{
  return httprequest.get({
   url:`/shop/pickAddr/page`,
   
   data
  })
}
//公告
export const gong=(data)=>{
  return httprequest.get({
   url:`/shop/notice/page`,
 
   data
  })
}
//产品管理
export const product=(data)=>{
   return httprequest.get({
    url:`/prod/prod/page`,
  
    data
   })
 }
//分组
export const fenzu=(data)=>{
   return httprequest.get({
    url:`/prod/prodTag/page`,
  
    data
   })
 }


//分类管理
export const classify=(data)=>{
   return httprequest.get({
      url:'/prod/category/table',
      data
   })
}

//运费
export const yunfei = (data)=>{
   return httprequest.get({
      url:'/shop/transport/page',   
      data
   })
}

//轮播图接口
export const lunbo = (data)=>{
   return httprequest.get({
      url:'/admin/indexImg/page',      //admin/hotSearch/page
      data
   })
}


//热搜接口
export const resou = (data)=>{
   return httprequest.get({
      url:'/admin/hotSearch/page',      
      data
   })
}

// 订单接口
export const dd=(data)=>{
   return httprequest.get({
      url:'/order/order/page',
      data
   })
}

//定时任务
export const ds=(data)=>{
   return httprequest.get({
      url:'/sys/schedule/page',
      data
   })
}

//菜单管理
export const dg=(data)=>{
   return httprequest.get({
      url:' /sys/menu/table',
      data
   })
}
